﻿using System.Collections.Generic;
using Unity.Collections;
using Unity.Mathematics;
using UnityEngine;

namespace Jinndev.Tile2D {

    public static class SequencePresets {

        public static readonly Dictionary<string, SequenceDefine> presets = new Dictionary<string, SequenceDefine>();

        public static void Add(string name, SequenceDefine sequenceDefine) {
            if (!presets.ContainsKey(name)) {
                presets.Add(name, sequenceDefine);
            }
            else {
                Debug.LogError($"Preset '{name}' already exists");
            }
        }

        public static bool TryGet(string name, out SequenceDefine sequenceDefine) {
            return presets.TryGetValue(name, out sequenceDefine);
        }

    }

}